package com.xqls.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.xqls.dal.dao.FluggasVocRecordDao;
import com.xqls.dal.model.FluggasVocRecord;
import com.xqls.dal.model.FluggasVocRecordExample;
import com.xqls.dal.model.FluggasVocRecordExample.Criteria;
import com.xqls.service.FluggasVocRecordService;

@Service
public class FluggasVocRecordServiceImpl implements FluggasVocRecordService {

	@Autowired private FluggasVocRecordDao recordDao;
	
	@Override
	public boolean insertRealdata(FluggasVocRecord record) {
		return this.recordDao.insertRealdata(record);
	}

	@Override
	public List<Map<String, Object>> getListByMap(Map<String, Object> map) {
		return this.recordDao.getListByMap(map);
	}

	@Override
	public List<FluggasVocRecord> getListByDeviceNo(String deviceNo) {
		FluggasVocRecordExample example=new FluggasVocRecordExample();
		Criteria criteria = example.createCriteria();
		criteria.andDeviceNoEqualTo(deviceNo);
		
		return this.recordDao.getListByExample(example);
	}
}
